<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<input type="hidden" name="organizations/organization[0]/sequence_no"
	value="1">
<input type="hidden" name="organizations/organization[0]@submit_org"
	value="1">
<input type="hidden" name="organizations/organization[0]/org_code"
	value="<x:out select="$xmlData/data/organizations/organization[@submit_org=1]/org_code"/>">
<div style="margin-bottom: 5px;">
	<strong>温馨提示：</strong><br /> 单位信息从单位维护表中导入，项目承担单位应认真核对，确保正确无误。
</div>
<div class="t_bar">单位基本情况</div>
<table class="t_css" width="100%" border="0" cellpadding="0"
	id="orgInfo" cellspacing="1">
	<tr>
		<td width="20%" align="right" nowrap>园区名称：</td>
		<td  colspan="5">&nbsp;<span
			name="organizations/organization[0]/org_name"><x:out
					select="$xmlData/data/organizations/organization[@submit_org='1']/org_name" />
		</span>
		</td>

	</tr>
	<tr>
		<td align="right" nowrap width="20%">园区所属地区：</td>
		<td width="30%" colspan="2">&nbsp; <span
			name="organizations/organization[0]/area_name"> <x:out
					select="$xmlData/data/organizations/organization[@submit_org='1']/area_name" />
		</span> <input name="proposal/area_no" type="hidden"
			value="<x:out select="$xmlData/data/organizations/organization[@submit_org='1']/area_value" />" />
		</td>
		<td align="right" width="20%">组织机构代码：</td>
		<td width="30%" colspan="2">&nbsp; <span
			name="organizations/organization[0]/org_no"> <x:out
					select="$xmlData/data/organizations/organization[@submit_org='1']/org_no" />
		</span>
		</td>
	</tr>
	<tr>
		<td align="right" width="20%">园区地址：</td>
		<td width="30%" colspan="2">&nbsp; <span
			name="organizations/organization[0]/address"> <x:out
					select="$xmlData/data/organizations/organization[@submit_org='1']/address" />
		</span>
		</td>
		<td align="right" width="20%"><span class="color_red">*</span>园区占地、建筑面积（㎡）：</td>
		<td colspan="2"><input name="proposal/area_square"
			value="<x:out select="$xmlData/data/proposal/area_square"/>"
			label="园区占地、建筑面积" class="required" style="text-align: right;"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>

	</tr>

	<tr>
		<td align="right">营业执照注册号：</td>
		<td colspan="2">&nbsp; <span
			name="organizations/organization[0]/org_licence"> <x:out
					select="$xmlData/data/organizations/organization[@submit_org='1']/org_licence" />
		</span>
		</td>
		<td align="right">税务登记号：</td>
		<td colspan="2">&nbsp; <span
			name="organizations/organization[0]/tax_local_no"> <x:out
					select="$xmlData/data/organizations/organization[@submit_org='1']/tax_local_no" />
		</span>
		</td>
	</tr>


	<tr>
		<td align="right">注册资本：</td>
		<td colspan="2">&nbsp; <span
			name="organizations/organization[0]/registe_fund"> <x:out
					select="$xmlData/data/org_basic_info/registe_fund" />万<x:out
					select="$xmlData/data/organizations/organization[@submit_org='1']/registe_fund_money_name" />
		</span>
		</td>
		<td align="right">注册类型：</td>
		<td colspan="2">&nbsp; <span
			name="organizations/organization[0]/nature_name"> <x:out
					select="$xmlData/data/organizations/organization[@submit_org='1']/nature_name" />
		</span> <input type="hidden"
			name="organizations/organization[0]/nature_value"
			value="<x:out select="$xmlData/data/organizations/organization[@submit_org='1']/nature_value" />" />
		</td>
	</tr>


	<tr>
		<td align="right">注册日期：</td>
		<td colspan="2">&nbsp; <span
			name="organizations/organization[0]/registe_date"> <x:out
					select="$xmlData/data/organizations/organization[@submit_org='1']/registe_date" />
		</span>
		</td>
		<td align="right">行业类型：</td>
		<td colspan="2">&nbsp; <!-- 
		    <input type="text" maxlength="50"  class="input_text required" label="行业类型"
			name="units/unit/industry_type"
			value="<x:out select="$xmlData/data/units/unit/industry_type"/>" />
		     --> <span
			name="organizations/organization[0]/belong_industry_name"> <x:out
					select="$xmlData/data/organizations/organization[@submit_org='1']/belong_industry_name" />
		</span>
		</td>
	</tr>

	<tr>
		<td align="right">开户银行：</td>
		<td align="left" colspan="2">&nbsp; <span
			name="org_basic_info/bank_name"> <x:out
					select="$xmlData/data/org_basic_info/bank_name" />
		</span>
		</td>
		<td align="right">银行信用等级：</td>
		<td align="left" colspan="2">&nbsp; <span
			name="org_basic_info/credit_level"> <x:out
					select="$xmlData/data/org_basic_info/credit_level" />
		</span>
		</td>

	</tr>
	<tr>
		<td align="right">开户户名：</td>
		<td align="left" colspan="2">&nbsp; <span
			name="org_basic_info/bank_orgname"> <x:out
					select="$xmlData/data/org_basic_info/bank_orgname" />
		</span>
		</td>
		<td align="right">银行账号：</td>
		<td align="left" colspan="2">&nbsp; <span
			name="org_basic_info/bank_account"> <x:out
					select="$xmlData/data/org_basic_info/bank_account" />
		</span>
		</td>
	</tr>





	<tr>
		<td rowspan="4" align="right" width="16%"><span class="color_red">*</span>园区入驻企业数：</td>
		<td rowspan="4" width="16%"><input name="proposal/yq_total"
			id="yq_total"
			onchange="percentage('yq_total','yq_whqy','yq_whqybl');percentage('yq_total','yq_low','yq_lowbl');percentage('yq_total','yq_middle','yq_middlebl');percentage('yq_total','yq_hight','yq_hightbl');"
			label="园区入驻企业数" type="text" required class="input_css required "
			style="text-align: right" onfocus="InitInput.setNumber(this,7,0,0)"
			value="<x:out select="$xmlData/data/proposal/yq_total" />" />
			<br/>
			<!-- <input type="hidden" id="yq_total_ex" class="valueCompare:yq_total_ex:yq_total" label="金融企业数,金融企业数和" name="proposal/yq_total_ex" value="<x:out select="$xmlData/data/proposal/yq_total_ex" />"> -->	
		</td>
		<td align="right" width="16%"><span class="color_red">*</span>金融企业数：</td>
		<td width="16%"><input name="proposal/yq_whqy" id="yq_whqy"
			onchange="percentage('yq_total','yq_whqy','yq_whqybl');"
			label="金融企业数" type="text" required
			class="input_css required  valueGreatEqual:yq_total:yq_whqy"
			style="text-align: right" onfocus="InitInput.setNumber(this,7,0,0)"
			value="<x:out select="$xmlData/data/proposal/yq_whqy" />" /></td>
		<td align="right" width="16%">占比：</td>
		<td width="16%"><span name="proposal/yq_whqybl" id="yq_whqybl"><x:out
					select="$xmlData/data/proposal/yq_whqybl" /></span></td>
	</tr>
	<tr>
		<td align="right" nowrap><span class="color_red">*</span>超千万元企业数：</td>
		<td><input name="proposal/yq_low" id="yq_low"
			onchange="percentage('yq_total','yq_low','yq_lowbl');"
			label="超千万元企业数" type="text" required
			class="input_css required valueGreatEqual:yq_total:yq_low"
			style="text-align: right" onfocus="InitInput.setNumber(this,7,0,0)"
			value="<x:out select="$xmlData/data/proposal/yq_low" />" /></td>
		<td align="right">占比：</td>
		<td><span name="proposal/yq_lowbl" id="yq_lowbl"><x:out
					select="$xmlData/data/proposal/yq_lowbl" /></span></td>
	</tr>
	<tr>
		<td align="right" nowrap><span class="color_red">*</span>超五千万元企业数：</td>
		<td><input name="proposal/yq_middle" id="yq_middle"
			onchange="percentage('yq_total','yq_middle','yq_middlebl');"
			label="超五千万元企业数" type="text" required
			class="input_css required valueGreatEqual:yq_total:yq_middle"
			style="text-align: right" onfocus="InitInput.setNumber(this,7,0,0)"
			value="<x:out select="$xmlData/data/proposal/yq_middle" />" /></td>
		<td align="right">占比：</td>
		<td><span name="proposal/yq_middlebl" id="yq_middlebl"><x:out
					select="$xmlData/data/proposal/yq_middlebl" /></span></td>
	</tr>
	<tr>
		<td align="right" nowrap><span class="color_red">*</span>超亿元企业数：</td>
		<td><input name="proposal/yq_hight" id="yq_hight"
			onchange="percentage('yq_total','yq_hight','yq_hightbl');"
			label="超亿元企业数" type="text" required
			class="input_css required valueGreatEqual:yq_total:yq_hight"
			style="text-align: right" onfocus="InitInput.setNumber(this,7,0,0)"
			value="<x:out select="$xmlData/data/proposal/yq_hight" />" /></td>
		<td align="right">占比：</td>
		<td><span name="proposal/yq_hightbl" id="yq_hightbl"><x:out
					select="$xmlData/data/proposal/yq_hightbl" /></span></td>
	</tr>
</table>

<div class="t_bar">人员情况</div>
<table class="t_css" width="100%" border="0" cellpadding="0"
	id="contactInfo" cellspacing="1">
	<tr>
		<td align="right">法定代表人：</td>
		<td>&nbsp; <span name="organization_persons/cname"> <x:out
					select="$xmlData/data/organization_persons/person[@type='faren']/cname" />
		</span> <input type="hidden" name="organization_persons/mobile"
			value="<x:out select="$xmlData/data/organization_persons/person[@type='faren']/mobile"/>" />
		</td>

		<td align="right">证件类型：</td>
		<td>&nbsp; <span name="organization_persons/id_type_name">
				<x:out
					select="$xmlData/data/organization_persons/person[@type='faren']/id_type_name" />
		</span>
		</td>
		<td align="right">证件号码：</td>
		<td>&nbsp; <span name="organization_persons/id_no"> <x:out
					select="$xmlData/data/organization_persons/person[@type='faren']/id_no" />
		</span>
		</td>
		<td align="right">联系电话：</td>
		<td>&nbsp; <span name="organization_persons/tel"> <x:out
					select="$xmlData/data/organization_persons/person[@type='faren']/tel" />
		</span>
		</td>
	</tr>
	<tr>
		<td align="right">单位负责人：</td>
		<td>&nbsp; <span name="organization_persons/fuzeren_cname">
				<x:out
					select="$xmlData/data/organization_persons/person[@type='fuzeren']/cname" />
		</span> <input type="hidden" name="organization_persons/fuzeren_mobile"
			value="<x:out select="$xmlData/data/organization_persons/person[@type='fuzeren']/mobile"/>" />
		</td>

		<td align="right">证件类型：</td>
		<td>&nbsp; <span name="organization_persons/fuzeren_id_type_name">
				<x:out
					select="$xmlData/data/organization_persons/person[@type='fuzeren']/id_type_name" />
		</span>
		</td>
		<td align="right">证件号码：</td>
		<td>&nbsp; <span name="organization_persons/fuzeren_id_no">
				<x:out
					select="$xmlData/data/organization_persons/person[@type='fuzeren']/id_no" />
		</span>
		</td>
		<td align="right">联系电话：</td>
		<td>&nbsp; <span name="organization_persons/fuzeren_tel">
				<x:out
					select="$xmlData/data/organization_persons/person[@type='fuzeren']/tel" />
		</span>
		</td>
	</tr>

	<tr>
		<td align="right" rowspan="1">员工人数：</td>
		<td rowspan="1">&nbsp; <span id="staff"
			name="organization_persons/people_count_total"> <x:out
					select="$xmlData/data/organization_persons/people_count_total" />
		</span>
		</td>


		<td align="right" colspan="3">其中：硕士以上人员数：</td>
		<td>&nbsp; <input type="hidden" id="degree_master"
			name="organization_persons/degree_master"
			value="<x:out select="$xmlData/data/organization_persons/degree_master"/>" />
			<input type="hidden" id="degree_doctor"
			name="organization_persons/degree_doctor"
			value="<x:out select="$xmlData/data/organization_persons/degree_doctor"/>" />
			<span id="proportion3" name="proposal/proportion3"> <x:out
					select="$xmlData/data/proposal/proportion3" />
		</span>
		</td>
		<td align="right">占员工总数比例：</td>
		<td>&nbsp; <span name="proposal/proportion2"> <x:out
					select="$xmlData/data/proposal/proportion2" />
		</span>
		</td>
	</tr>
</table>

<div class="t_bar">上年度经济效益（万元）</div>
<table class="t_css" width="100%" border="0" cellpadding="0"
	id="contactInfo" cellspacing="1">


	<tr>
		<td align="right"><span class="color_red">*</span>地区GDP：</td>
		<td><input name="proposal/area_dgp"
			value="<x:out select="$xmlData/data/proposal/area_dgp"/>"
			label="上年度经济效益->地区GDP" class="required" style="text-align: right;"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>
		<td align="right"><span class="color_red">*</span>同比增幅（%）：</td>
		<td><input name="proposal/area_dgp_pre"
			value="<x:out select="$xmlData/data/proposal/area_dgp_pre"/>"
			label="上年度经济效益->地区GDP->同比增幅" class="required"
			style="text-align: right;" onfocus="InitInput.setNumber(this,9,2,2,null,true)" /></td>

	</tr>
	<tr>
		<td align="right"><span class="color_red">*</span>财政收入：</td>
		<td><input name="proposal/fiscal_revenue"
			value="<x:out select="$xmlData/data/proposal/fiscal_revenue"/>"
			label="上年度经济效益->财政收入" class="required" style="text-align: right;"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>
		<td align="right"><span class="color_red">*</span>同比增幅（%）：</td>
		<td><input name="proposal/fiscal_revenue_pre"
			value="<x:out select="$xmlData/data/proposal/fiscal_revenue_pre"/>"
			label="上年度经济效益->财政收入->同比增幅" class="required"
			style="text-align: right;" onfocus="InitInput.setNumber(this,9,2,2,null,true)" /></td>
	</tr>
</table>


<div class="t_bar">近三年获得各级政府资助情况</div>
<table id="fund_projects" border="0" cellspacing="0" cellpadding="0"
	class="t_css" style="width: 100%;">
	<tbody>
		<tr>
			<th width="2%" rowspan="2" nowrap>序号</th>
			<th rowspan="2">项目名称</th>
			<th width="14%" rowspan="2">资助部门</th>
			<th width="40%" colspan="5">政府扶持资金（单位：万元）</th>
			<th width="20%" rowspan="2">资助时间</th>
			<th width="5%" rowspan="2">资助<br />形式
			</th>
			<th width="8%" rowspan="2">项目进度</th>
		</tr>
		<tr>
			<th>小计</th>
			<th>国家</th>
			<th>省级</th>
			<th>市级</th>
			<th>区级</th>
		</tr>

		<c:set value="0" var="index" scope="page" />
		<x:forEach select="$xmlData/data/organization_research/fund_project"
			var="fund_project">
			<c:choose>
				<c:when test="${index<10}">
					<c:set value="0" var="flag" scope="page" />
				</c:when>
				<c:otherwise>
					<c:set value="" var="flag" scope="page" />
				</c:otherwise>
			</c:choose>
			<tr>
				<td align="center"><span
					name="organization_research/fund_project[${flag}${index}]@sequence_no"><x:out
							select="$fund_project/@sequence_no" /></span></td>
				<td><span
					name="organization_research/fund_project[${flag}${index}]/ctitle"><x:out
							select="$fund_project/ctitle" /></span></td>
				<td><span
					name="organization_research/fund_project[${flag}${index}]/award_dept"><x:out
							select="$fund_project/award_dept" /></span></td>
				<td align="center"><span
					name="organization_research/fund_project[${flag}${index}]/award_amt_total"><x:out
							select="$fund_project/award_amt_total" /></span></td>
				<td align="center"><span
					name="organization_research/fund_project[${flag}${index}]/award_amt_nation"><x:out
							select="$fund_project/award_amt_nation" /></span></td>
				<td align="center"><span
					name="organization_research/fund_project[${flag}${index}]/award_amt_province"><x:out
							select="$fund_project/award_amt_province" /></span></td>
				<td align="center"><span
					name="organization_research/fund_project[${flag}${index}]/award_amt_city"><x:out
							select="$fund_project/award_amt_city" /></span></td>
				<td align="center"><span
					name="organization_research/fund_project[${flag}${index}]/award_amt_district"><x:out
							select="$fund_project/award_amt_district" /></span></td>

				<td nowrap="nowrap" align="center"><span
					name="organization_research/fund_project[${flag}${index}]/award_start_date"><x:out
							select="$fund_project/award_start_date" /></span> 至 <span
					name="organization_research/fund_project[${flag}${index}]/award_end_date"><x:out
							select="$fund_project/award_end_date" /></span></td>

				<td align="center"><span
					name="organization_research/fund_project[${flag}${index}]/award_type_name"><x:out
							select="$fund_project/award_type_name" /></span></td>
				<td align="center"><span
					name="organization_research/fund_project[${flag}${index}]/accept_flag_name"><x:out
							select="$fund_project/accept_flag_name" /></span></td>
			</tr>
			<c:set value="${index+1}" var="index" scope="page" />
		</x:forEach>
	</tbody>
</table>


<script type="text/javascript">
	$(function() {
		var staff = $("#staff").text();

		var degree_master = $("#degree_master").val();
		var degree_doctor = $("#degree_doctor").val();
		var degree = parseInt(degree_master) + parseInt(degree_doctor);

		$("#proportion3").text(degree);
		$("span[name$=proportion2]").text(
				formatVal((degree / staff) * 100) + "%");
	});

	function percentage(id1, id2, id3) {
		var val1 = $("#" + id1).val();
		var val2 = $("#" + id2).val();
		if (val1 == '' || val1 == 0) {
			$("#" + id3).text("");
			return;
		} else {
			$("#" + id3).text(
					(((val2 / val1) * 1000000) / 10000).toFixed(2) + "%");
		}
	}
	function countTotal() {
		var val1 = $("#yq_whqy").val();
		var val2 = $("#yq_low").val();
		var val3 = $("#yq_middle").val();
		var val4 = $("#yq_hight").val();
		if (!$.isNumeric(val1)){
			val1 = "0";
		}
		if (!$.isNumeric(val2)){
			val2 = "0";
		}
		if (!$.isNumeric(val3)){
			val3 = "0";
		}
		if (!$.isNumeric(val4)){
			val4 = "0";
		}
		var total = parseInt(val1)+parseInt(val2)+parseInt(val3)+parseInt(val4);
		$("#yq_total_ex").val(total);
		
	}
</script>